package com.fingard.dsp.bank.reqrespobj.mailedmsg;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RequestBase;
import com.fingard.dsp.bank.reqrespobj.invoicemsg.RetAtsInvoiceMsgDetail;
import com.fingard.xml.XmlTextReader;

public class ReqMailedMsgQry extends RequestBase{
	
	//接入机构号
    public String CHANNEL_CODE="";
    //总笔数
    public String Z_BISHU="";
    //单据号
    public String BillNo="";
    //品牌
    public String CarTypeCode="";
    //经销商代码
    public String DealerCode="";
    //经销商名称
    public String DealerName="";
    //经销商证件类型
    public String IdType="";
    //特约店代码
    public String ErpCustId="";
    //提单属性
    public String BILL_TYPE="";
    //VIN码
    public String VIN="";
    //新VIN码
    public String VEHICLE_NEW="";
    //提单日期
    public String BILL_DATE="";
    //免息期终止日期
    public String FREE_DAYS="";
    //车型代码
    public String MODEL_CODE="";
    //车型名称
    public String MODEL_NAME="";
    //车型
    public String MY_CODE="";
    //版本号
    public String MODEL_VERSION="";
    //选装包
    public String PR_LIST="";
    //内饰
    public String INTERIOR_CODE="";
    //内饰名称
    public String INTERIOR_NAME="";
    //颜色代码
    public String COLOR_CODE="";
    //颜色名称
    public String COLOR_NAME="";
    //合格证号
    public String CertificationNo="";
    //新合证号
    public String CERTIFICATE_NO_NEW="";
    //发动机号
    public String EngineNo="";
    //新发动机号
    public String ENGINE_NEW="";
    //出厂日期
    public String CarDispatchTime="";
    //提单数量
    public String BILL_NUM="";
    //提单价格
    public String PickupPrice="";
    //提单总价
    public String BILL_AMOUNT="";
    //返利金额
    public String BILL_REBATE="";
    //单位
    public String GOODS_UNIT="";
    //订单号
    public String OrderCode="";
    //明细id
    public String DetailId="";
    //预留字段1
    public String Reserve1="";
    //预留字段2
    public String Reserve2="";
    //预留字段3
    public String Reserve3="";
    
    private XmlTextReader xmlReader;

    public ReqMailedMsgQry(XmlTextReader p_xmlReader, ReqRespHeader p_header) throws Exception {
        reqHeader = p_header;
        xmlReader = p_xmlReader;
        Z_BISHU = xmlReader.getSimpleText("Z_BISHU");
        DealerCode = xmlReader.getSimpleText("DealerCode");
        DealerName = xmlReader.getSimpleText("DealerName");
        BillNo = xmlReader.getSimpleText("BillNo");
        ErpCustId = xmlReader.getSimpleText("ErpCustId");
        IdType = xmlReader.getSimpleText("IdType");
        DetailId = xmlReader.getSimpleText("DetailId");
        OrderCode = xmlReader.getSimpleText("OrderCode");
    }

    public ReqMailedMsgQryDetail ReqDetail;
    public boolean readRecord() throws Exception{
    	ReqDetail = null;
        if(xmlReader.read(PATH_Detail)){
        	ReqDetail = new ReqMailedMsgQryDetail(xmlReader.readedXElement);
            return true;
        }
        else{
            return false;
        }
    }
}
